package com.bawei.aidl_server.service

import android.app.Service
import android.content.Intent
import android.os.IBinder
import com.bawei.aidl_server.IMyAidlInterface

class ServerService : Service() {
    //返回代理对象
    override fun onBind(intent: Intent): IBinder {
      return object : IMyAidlInterface.Stub(){
          override fun add(num1: Int, num2: Int): Int {
              return num1+num2
          }

      }
    }
}